package records

import (
	"github.com/golib/mysql"
)

const RecordNameAuditionStudentMistake = "audition_student_mistake"

func init() {
	var r = &AuditionStudentMistake{}
	mysql.RegisterRecord(r.Name(), r)
}

type AuditionStudentMistake struct {
	StudentMistakeId         int    `primary:"true" modify:"false" json:"studentMistakeId" form:"studentMistakeId" column:"student_mistake_id"`
	StudentId                int    `form:"studentId" column:"student_id" modify:"true" json:"studentId"`
	QuestionId               int    `json:"questionId" form:"questionId" column:"question_id" modify:"true"`
	QuestionType             int    `json:"questionType" form:"questionType" column:"question_type" modify:"true"`
	KnowledgeId              int    `form:"knowledgeId" column:"knowledge_id" modify:"true" json:"knowledgeId"`
	KnowledgeName            string `modify:"true" json:"knowledgeName" form:"knowledgeName" column:"knowledge_name"`
	Difficulty               int    `json:"difficulty" form:"difficulty" column:"difficulty" modify:"true"`
	LocalCorrectPercent      int    `form:"localCorrectPercent" column:"local_correct_percent" modify:"true" json:"localCorrectPercent"`
	NationwideCorrectPercent int    `json:"nationwideCorrectPercent" form:"nationwideCorrectPercent" column:"nationwide_correct_percent" modify:"true"`
	CreateTime               string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime               string `modify:"false" json:"updateTime" form:"updateTime" column:"update_time"`
}

func (r *AuditionStudentMistake) Name() string {
	return RecordNameAuditionStudentMistake
}
